package br.com.appcalipse.pages.anuncio;

import java.util.ArrayList;
import java.util.List;

import jmine.tec.web.wicket.ComponentHelper;
import jmine.tec.web.wicket.pages.form.FormPage;
import jmine.tec.web.wicket.pages.form.FormType;

import org.apache.wicket.Component;
import org.apache.wicket.Page;
import org.apache.wicket.request.mapper.parameter.PageParameters;

import bancosys.tec.exception.MessageCreator;
import br.com.appcalipse.domain.Anuncio;

/**
 * Tela de cadastro de {@link Anuncio}.
 * 
 * @author finx
 * @created Apr 25, 2013
 */
public class CadastroAnuncio extends FormPage<Anuncio>{


    /**
     * Construtor
     * 
     * @param pageParameters the pageParameters
     */
    public CadastroAnuncio(PageParameters pageParameters) {
        super(pageParameters);
    }
	
	 /**
     * Construtor
     * 
     * @param pageParameters the pageParameters
     * @param pageInstance the pageInstance
     */
    public CadastroAnuncio(PageParameters pageParameters, Page pageInstance) {
        super(pageParameters, pageInstance);
    }

    /**
     * Construtor
     * 
     * @param sourcePage the sourcePage
     * @param sourcePageParameters the sourcePageParameters
     * @param entity the entity
     * @param formType the entity
     */
    public CadastroAnuncio(Page sourcePage, PageParameters sourcePageParameters, Anuncio entity, FormType formType) {
        super(sourcePage, sourcePageParameters, entity, formType);
    }
    
    /**
     * {@inheritDoc}
     */
    protected List<Component> createFormComponents() {
        List<Component> components = new ArrayList<Component>();
        components.add(ComponentHelper.createField(String.class, "usuario", true));
        components.add(ComponentHelper.createField(String.class, "carro", true));
        components.add(ComponentHelper.createField(String.class, "link", true));
        return components;
    }
    
    /**
     * {@inheritDoc}
     */
    @Override
    protected MessageCreator getHelpTextCreator() {
        return null;
    }
	
}
